'''
Created on Sep 29, 2011

@author: lewis.gordon
'''


from tkinter import *

class Application(Frame):
    def __init__(self,master=None):
        Frame.__init__(self, master,padx='100',pady='100')
        self.grid()
        self.createWidgets()
        
    def createWidgets(self):
        self.quitButton = Button(self,text='Quit',command=self.quit)
        self.quitButton.grid()
        self.checkButton = Checkbutton(self,text='yes')
        self.checkButton.grid()
        self.mb  =  Menubutton ( self, text="condiments",
                             relief=RAISED )
        self.mb.grid()
    
        self.mb.menu  =  Menu ( self.mb, tearoff=0 )
        self.mb["menu"]  =  self.mb.menu
    
        self.mayoVar  = IntVar()
        self.ketchVar = IntVar()
        self.mb.menu.add_checkbutton ( label="mayo",
                                       variable=self.mayoVar )
        self.mb.menu.add_checkbutton ( label="ketchup",
                                       variable=self.ketchVar )
        self.entry = Entry(self)
        self.entry.grid()

app = Application()
app.master.title("Duels-program")
app.mainloop()